package com.xiaofan.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 使用校验功能注解
 * @author 晓帆
 * @version 1.0
 **/
@Data
public class User {

    @Length(min = 6,max = 15,message = "max=15 min=6")
    private String username;
    @Length(min = 6,max = 8)
    private String password;
}
